{"ast":null,"code":"export var getUserName=function getUserName(user){if(user.firstName&&user.lastName){return\"\".concat(user.firstName,\" \").concat(user.lastName);}return user.firstName||user.lastName||user.nickname;};","map":{"version":3,"names":["getUserName","user","firstName","lastName","nickname"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/src/utils/User.ts"],"sourcesContent":["import {UserListItem} from \"../models/response/UserListItem\";\n\nexport const getUserName = (user: UserListItem): string => {\n    if (user.firstName && user.lastName) {\n        return `${user.firstName} ${user.lastName}`;\n    }\n\n    return user.firstName || user.lastName || user.nickname;\n}"],"mappings":"AAEA,MAAO,IAAMA,YAAW,CAAG,QAAdA,YAAW,CAAIC,IAAkB,CAAa,CACvD,GAAIA,IAAI,CAACC,SAAS,EAAID,IAAI,CAACE,QAAQ,CAAE,CACjC,gBAAUF,IAAI,CAACC,SAAS,aAAID,IAAI,CAACE,QAAQ,EAC7C,CAEA,MAAOF,KAAI,CAACC,SAAS,EAAID,IAAI,CAACE,QAAQ,EAAIF,IAAI,CAACG,QAAQ,CAC3D,CAAC"},"metadata":{},"sourceType":"module"}